package com.wooming.myserver.exception;

/**
 * 业务异常类
 *
 * @author wooming 2025/05/23
 */
@lombok.Getter
public class ServiceException extends RuntimeException {
    private  final int code;

    public ServiceException(int code, String message) {
        super(message);
        this.code = code;
    }

    public ServiceException(String message) {
        this(400, message);
    }
}
